package model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "VOYAGE_CAR")
public class VoyageCar {
	private int id;
	private String villedepart;
	private String villearrivee;
	private String horairedepart;

	public VoyageCar() {
	}

	public VoyageCar(String villedepart, String villearrivee,
			String horairedepart) {
		this.villedepart = villedepart;
		this.villearrivee = villearrivee;
		this.horairedepart = horairedepart;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "VOYAGE_CAR_ID")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "VILLE_DEPART")
	public String getVilledepart() {
		return villedepart;
	}

	public void setVilledepart(String villedepart) {
		this.villedepart = villedepart;
	}

	@Column(name = "VILLE_ARRIVEE")
	public String getVillearrivee() {
		return villearrivee;
	}

	public void setVillearrivee(String villearrivee) {
		this.villearrivee = villearrivee;
	}

	@Column(name = "HORAIRES")
	public String getHorairedepart() {
		return horairedepart;
	}

	public void setHorairedepart(String horairedepart) {
		this.horairedepart = horairedepart;
	}

}
